package com.central.product.pojo.drawProductGroup

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal
import java.util.*

/**
 * @author  fly
 * @date  2021/5/31 18:03
 * @version 1.0
 */
@ApiModel("抽奖返回商品封装")
data class DrawProductVo(

    var id: Long? = null,

    @ApiModelProperty("抽奖商品名称")
    var drawProductName: String? = null,

    @ApiModelProperty("抽奖商品图片")
    var drawProductPic: String? = null
)

@ApiModel("添加抽奖商品组参数")
data class DrawProductDto(

    var id: Long? = null,

    @ApiModelProperty("抽奖分类id")
    var drawCategoryId: Long? = null,

    @ApiModelProperty("抽奖商品组名称")
    var drawProductGroupName: String? = null,

    @ApiModelProperty("最低起扭")
    var drawMoneyLimit: BigDecimal? = null,

    @ApiModelProperty("备注")
    var remark: String? = null,

    @ApiModelProperty("添加的商品组合")
    var drawProductInfos: String? = null
)

@ApiModel("抽奖组列表")
data class DrawProductListVo(

    @ApiModelProperty("抽奖组id")
    var drawProductGroupId: Long? = null,

    @ApiModelProperty("抽奖商品组名称")
    var drawProductGroupName: String? = null,

    @ApiModelProperty("备注")
    var remark: String? = null,

    @ApiModelProperty("最低起扭")
    var drawMoneyLimit: BigDecimal? = null,

    @ApiModelProperty("抽奖图片展示")
    var drawProductPics: String? = null,

    @ApiModelProperty("创建时间")
    var createTime: Date? = null,
)

@ApiModel("抽奖组详情信息")
data class DrawProductDetailVo(

    var id: Long? = null,

    @ApiModelProperty("抽奖分类id")
    var drawCategoryId: String? = null,

    @ApiModelProperty("抽奖分类名称")
    var drawCategoryName: String? = null,

    @ApiModelProperty("抽奖商品组名称")
    var drawProductGroupName: String? = null,

    @ApiModelProperty("备注")
    var remark: String? = null,

    @ApiModelProperty("最低起扭")
    var drawMoneyLimit: BigDecimal? = null,

    @ApiModelProperty("抽奖组商品信息")
    var drawProductVos: List<DrawProductVo>? = null
)

@ApiModel("抽奖组搜索dto")
data class DrawProductGroupSearchDto(

    @ApiModelProperty("抽奖分类id")
    var drawCategoryId: Long? = null,

    @ApiModelProperty("抽奖商品组名称")
    var drawProductGroupName: String? = null,
)